package zjh_20230404;

import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.FutureTask;

import static java.util.concurrent.Executors.*;

public class Homework02 {
    public static void main(String[] args) {

        }
    }
    class Mythread implements Runnable{

    public static int i = 0;
    private int times;
    private int type;
    Mythread(int times,int type){
        this.times = times;
        this.type = type;
    }
//    new
        @Override
        public void run() {
        if (type == 1){
            i++;
        }
        if (type == 0){
            i--;
        }

        }
    }
